home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / LIB211.ZIP;1 / DISK.TXT < prev    next >
Encoding:
Text File  |  1993-12-14  |  1.0 KB  |  26 lines

  1. .BIN file to be loaded from within dBASE III PLUS (or Developer's 
  2. Release) to verify that a disk drive has a disk in it before trying to
  3. write to it.  The program expects to be passed a character variable (not
  4. a constant) and returns an 'X' in that variable if an error occurred (if
  5. the disk isn't ready).  This is done by calling the BIOS routine to 
  6. verify a specific disk sector.  If this can't be done, an error is 
  7. returned without relying on DOS' "ABORT, RETRY, IGNORE" message.
  8.  
  9. To use it from within dBASE III PLUS, type:
  10.  
  11.       LOAD DISK
  12.       STORE 'A' TO drivename     && for example
  13.       CALL DISK WITH drivename
  14.       IF drivename = 'X'
  15.          DO error routine
  16.       ELSE
  17.          DO whatever
  18.       ENDIF                   
  19.  
  20. (This was taken from DISK.ASM, which is all that came with the file
  21.  DISK.BIN in the way of documentation. Note that the code above works 
  22.  for dBASE IV just fine ... Ken)
  23.  
  24. NOTE: The .ASM file can be found in the DBASE Forum of CompuServe,
  25. library 4, as: ISDISK.ARC (includes the .BIN as well).
  26.